package com.zhangyi.controller;

import com.zhangyi.Student;
import com.zhangyi.service.SSMService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/zhangyi")
public class SSMController {
@Autowired
    SSMService ssmService;

@PostMapping("/list")
    public String lists(Student student){
    return ssmService.StudentList(student);
}
}
